import { getInfo } from '@/utils/auth';
const getters = {
  token: state => state.user.token,
  userInfo: (state) => {
    if (state.user.userInfo) {
      return state.user.userInfo;
    } else {
      // console.log(userInfo);
      return getInfo();
    }
  }
};
export default getters;
